import request from '../utils/request.js';

// 获取用户积分总览
export const getPointsOverview = () => {
  return request.get('/api/points/overview');
};

// 获取用户积分记录列表
export const getPointsRecords = () => {
  return request.get('/api/points/records');
};

// 计算积分可抵扣的最大金额
export const getMaxDiscountAmount = () => {
  return request.get('/api/points/max-discount');
};

// 检查用户积分是否足够
export const checkPointsEnough = (points) => {
  return request.get('/api/points/check', { 
    params: {
      points
    }
  });
};





